public class Main {
    public static void main(String[] args) {
        Dog dog=new Dog("小狗");
        dog.running();
        Bird bird=new Bird("小鸟");
        Duck duck=new Duck("唐老鸭");
        bird.flying();
        duck.flying();
        duck.running();
        duck.swiming();
    }

}